<?php

/**
 * @author oriotiori
 * @copyright 2010
 * Clase para obtener los metatags
 */

class metatags{
    var $str="";
    
    public function metatags(){}
		
    public function getMetatags(){

        $metaFacade= new Admin_Model_Facade_Seo();
        $metaTo= new Admin_Model_TO_Seo();
        $metaTo->setId(2);
        $row=$metaFacade->readSeo($metaTo->getAllVars());

        $this->str.='
                <meta name="title" content="'.$row['Title'].'" />
                <meta name="DC.Title" content="'.$row['Title'].'" />
                <meta http-equiv="title" content="'.$row['Title'].'" />
                <meta name="Subject" content="'.$row['Subject'].'" />
                <meta name="description" content="'.$row['Description'].'" />
                <meta http-equiv="description" content="'.$row['Description'].'" />
                <meta http-equiv="DC.Description" content="'.$row['Description'].'" />
                <meta name="keywords" content="'.$row['Keywords'].'" />
                <meta http-equiv="keywords" content="'.$row['Keywords'].'" />
                <meta name="Revisit" content="'.$row['Revisit'].'" />
                <meta name="Revisit-After" content="'.$row['Revisit'].'" />
                <meta name="DC.Language" content="'.$row['Language'].'" />
                <meta name="Robots" content="'.$row['Robots'].'" />
                <meta name="Distribution" content="'.$row['Distribution'].'" />
                <meta name="City" content="'.$row['City'].'" />
                <meta name="Country" content="'.$row['Country'].'" />
           ';

        return $this->str;
    }	
}
